package com.example.springbootmybatisplus.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.example.springbootmybatisplus.common.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 首页banner
 * </p>
 *
 * @author zx
 * @since 2021-09-03
 */
@Data
  @EqualsAndHashCode(callSuper = true)
    @TableName("crm_banner")
public class Banner extends BaseEntity {

    private static final long serialVersionUID = 1L;

      /**
     * 标题
     */
      private String title;

      /**
     * 图片地址
     */
      private String imageUrl;

      /**
     * 链接地址
     */
      private String linkUrl;

      /**
     * 排序
     */
      private Integer sort;

      /**
     * 逻辑删除 1（true）已删除， 0（false）未删除
     */
      @TableField("is_deleted")
    @TableLogic
    private Boolean deleted;


}
